﻿namespace EasyDDD.Application
{
    public interface ICommandUnitOfWorkBehavior<TCommand, TResponse>
        //(IUnitOfWork unitOfWork) (EFContext context)
        : IPipelineBehavior<TCommand, TResponse>
        //where TContext : DbContext
        where TCommand : ICommandBase
    {
        //public virtual Task<TResponse> Handle(TCommand request, RequestHandlerDelegate<TResponse> next, CancellationToken cancellationToken)
        //{
        //    throw new NotImplementedException();
        //}
        //Task<TResponse> Handle(TCommand request, RequestHandlerDelegate<TResponse> next, CancellationToken cancellationToken);
    }
}
